<template>
	<view class="">
		<u-popup :show="dzshow" @close="dzclose">
			<view class="">
				<view class="flexbetween mainpadding xiahuaxian">
					<view class="xiaolv sanshier nofonweight" @click="dzclose">取消</view>
					<view class="xiaolv sanshier nofonweight">确定</view>
				</view>
				<view class="dizneo">
					<view class="flexbetween mainpadding xiahuaxian" v-for="item in 9">
						<view class="xiaohei sanshier nofonweight">羽毛球场馆</view>
						<view class="xiaohei sanshier nofonweight">距离1km</view>
					</view>
				</view>
			</view>
		</u-popup>
		<u-datetime-picker :show="show" v-model="value1" mode="datetime" @confirm="confirm" cancelColor="#1BA95B"
			confirmColor="#1BA95B" @cancel="cancel"></u-datetime-picker>
		<view class="" style="padding-bottom: 120rpx;">
			<view class="mainpadding ffffff">
				<view class="ershiba nofonweight xiaohei">比赛主图</view>
				<view class="margin_top shangc">
					<image src="../static/image/system/shangchuan.png" mode=""></image>
				</view>
				<view class="ershiba nofonweight xiaohei margin_top">比赛轮播图（0/5）</view>
				<view class="flexleft flex_wrap">
					<view class="shilitu margin_top margin_right2 dingwei">
						<image src="@/static/image/system/cd.png" mode=""></image>
						<view class="shanchu">
							<u-icon name="close-circle-fill"></u-icon>
						</view>
					</view>
					<view class="margin_top shangc margin_right2">
						<image src="../static/image/system/shangchuan.png" mode=""></image>
					</view>
				</view>
				<view class="ershiba nofonweight xiaohei margin_top">比赛名称</view>
				<view class="margin_top">
					<u--input placeholder="请输入内容" border="surround" v-model="value"></u--input>
				</view>
			</view>
			<view class="mainpadding ffffff margin_top1">
				<view class="xiahuaxian flexbetween">
					<view class="ershiba nofonweight xiaohei">主办方/组织人</view>
					<input class="textright" type="text" placeholder="输入姓名">
				</view>
				<view class="xiahuaxian flexbetween margin_top">
					<view class="ershiba nofonweight xiaohei">报名时间</view>
					<view class="flexright" @click="show = true">
						<view class="ershiba nofonweight xiaohui">选择时间</view>
						<u-icon name="arrow-right"></u-icon>
					</view>

				</view>
				<view class="xiahuaxian flexbetween margin_top">
					<view class="ershiba nofonweight xiaohei">比赛时间</view>
					<view class="flexright" @click="show = true">
						<view class="ershiba nofonweight xiaohui">选择时间</view>
						<u-icon name="arrow-right"></u-icon>
					</view>
				</view>
				<view class="xiahuaxian flexbetween margin_top">
					<view class="ershiba nofonweight xiaohei" @click="dzshow = true">比赛地址</view>
					<input class="textright" type="text" placeholder="输入地址">
				</view>
				<view class="xiahuaxian flexbetween margin_top">
					<view class="ershiba nofonweight xiaohei">比赛费用</view>
					<view class="flexright">
						<input class="textright" type="text" placeholder="输入费用">
						<view class="ershiba nofonweight xiaohei">元</view>
					</view>
				</view>
				<view class="xiahuaxian flexbetween margin_top">
					<view class="ershiba nofonweight xiaohei">比赛地址</view>
					<input class="textright" type="text" placeholder="输入人数">
				</view>
				<view class="xiahuaxian flexbetween margin_top">
					<view class="ershiba nofonweight xiaohei">比赛类型</view>
					<view class="flexright">
						<view class="xiaolbtn margin_right2">团体赛</view>
						<view class="xiaolbtn margin_right2">个人赛</view>
					</view>
				</view>
				<view class="ershiba nofonweight xiaohei margin_top">赛事章程</view>
				<view class="margin_top">
					<u--textarea v-model="value2" placeholder="请输入内容" count></u--textarea>
				</view>
				<view class="ershiba nofonweight xiaohei margin_top">比赛介绍</view>
				<view class="margin_top">
					<u--textarea v-model="value2" placeholder="填写比赛介绍" count></u--textarea>
				</view>
			</view>
		</view>
		<view class="gudingdb ffffff mainpadding">
			<view class="huibigbtntys">点击创建</view>
			<!-- <view class="bigbtn" @click="tzwccj">保存</view> -->
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				value: '',
				value2: '',
				show: false,
				value1: Number(new Date()),
				dzshow: false
			}
		},
		methods: {
			dzclose() {
				this.dzshow = false
				// console.log('close');
			},
			// 跳转完成创建
			tzwccj() {
				uni.navigateTo({
					url: '/pages_julebu/chuangjianwc'
				})
			},
			confirm(e) {
				console.log(e)
				this.show = false
			},
			cancel() {
				this.show = false
			},
		}
	}
</script>

<style lang="scss" scoped>
	.dizneo{
		height: 500rpx;
		overflow: auto;
	}
	.xiaolbtn {
		width: 112rpx;
		height: 48rpx;
		background: rgba(27, 169, 91, 0.1);
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		font-size: 24rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #1BA95B;
		border: 2rpx solid #1BA95B;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	page {

		background: #F9F9F9;
	}

	.shanchu {
		position: absolute;
		top: -10rpx;
		right: -10rpx;
	}

	.shilitu {
		width: 160rpx;
		height: 160rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.shangc {
		width: 160rpx;
		height: 160rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>